package com.zhangck.bos2_0.Filter;

import java.io.IOException;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter;

/** 
* @author 上午茶
* @version 创建时间：2018年6月8日 下午6:57:01 
* 类说明 
*/
public class MyStrutsFilter  extends StrutsPrepareAndExecuteFilter{

	@Override
	public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException{
		HttpServletRequest request = (HttpServletRequest) req;
		String uri = request.getRequestURI();
		if (uri.contains("/services/")) {
			chain.doFilter(req, res);
		}else {
			super.doFilter(req, res, chain);
		}
	}
	
}
